package fr.pascal;

import java.util.ArrayList;
import java.util.List;

public class Main2 {
	public static void main(String[] args) {

//		List<String> strings = new ArrayList<String>();
//		strings.add("aaaaa");
//		strings.add("bbbbb");
//		strings.add("ccccc");
//		strings.add("aaaaa");
//		System.out.println(strings);

//		System.out.println(strings.contains("aaaaa"));

		List<Kangourou> kangourous = new ArrayList<Kangourou>();

		Kangourou k1 = new Kangourou("skippy", 17, "bleu");
		kangourous.add(k1);

		kangourous.add(new Kangourou("lassie", 3, "orange"));
		kangourous.add(new Kangourou("flipper", 3, "rose"));
		kangourous.add(new Kangourou("joe", 11, "rouge"));
		kangourous.add(new Kangourou("tornado", 11, "vert"));
		kangourous.add(new Kangourou("rintintin", 11, "jaune"));

		System.out.println(kangourous);

		Kangourou k2 = new Kangourou("skippy", 17, "bleu");
//		kangourous.add(k2);

		System.out.println(kangourous.contains(new Kangourou("skippy", 17, "bleu")));
		System.out.println(kangourous.contains(k2));

	}
}
